import config from "@/config";
import type { Model } from './connect';

interface configIF extends Model {
  systemParameters: any;
}

const ConfigModel: configIF = {
  namespace: 'config',
  state: {
     ...config,
    systemParameters: {},
  },
  effects: {
    *getSystemParametersByName({ payload }, { call, put, select }) {},
  },
  reducers: {
    save(state, { payload }) {
      return {
        ...state,
        ...payload,
      };
    },
  },
};
export default ConfigModel;
